// components/activity/activity.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        activity: Array,
        type: Number
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        detial: function(event) {
            let index = event.currentTarget
            var id = event.currentTarget.id;
            let item = this.properties.activity[id]
            console.log(id);
            wx.navigateTo({
                url: '../activityDetial/activityDetial?id=' + item.activityId
            })

        },


        // 跳转到在线报名页面
        onlineApply: function(event) {
            let index = event.currentTarget
            var id = event.currentTarget.id;
            let item = this.properties.activity[id]
            console.log(id);
            wx.navigateTo({
                url: '../onlineApply/onlineApply?id=' + item.activityId
            })
        }

    }

})